From aa2b75a26b648372059ae79882363400205e143a Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 22 Apr 2008 00:56:58 +0000 Subject: [PATCH] Pass title by ref to consistently override the whole thing. Image pages where acting oddly with Media: urls, thinking the page didn't exist when it did. --- includes/Wiki.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Wiki.php b/includes/Wiki.php index 8ff137bdc4..2269d27545 100644 --- a/includes/Wiki.php +++ b/includes/Wiki.php @@ -238,7 +238,7 @@ class MediaWiki { * @param Title $title * @return Article object */ - static function articleFromTitle( $title ) { + static function articleFromTitle( &$title ) { $article = null; wfRunHooks( 'ArticleFromTitle', array( &$title, &$article ) ); if ( $article ) { -- 2.20.1